package com.xueyl.springboot.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.xueyl.springboot.exception.MyException;

@Controller
public class HelloController {

	@RequestMapping("/index")
	public String index(ModelMap map) throws Exception{
		throw new Exception("错误");
	}
	
	@RequestMapping("/index1")
	public String index1(ModelMap map) throws MyException{
		throw new MyException("错误");
	}
}
